import CommonApi from './common'

// 日常养护 /日常养护计量 /合同管理-新增单价
class ContractPriceApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/ms/price'
    }

    records(data) {
        const path = this.resolvePath('/page/list')
        return this.post(path, data)
    }

    saveOrUpdate(data) {
        const path = this.resolvePath('/save')
        return this.post(path, data)
    }
    detail(data) {
        const path = this.resolvePath('/detailsById')
        return this.post(path, data)
    }
    // 台账管理变更相关详情
    projectDetail(data) {
        const path = this.resolvePath('/project/detailsById')
        return this.post(path, data)
    }
}

export default ContractPriceApi
